class OrderReleaseModel{
   String id;
  String comName;
  String phone;
  String proName;
  String robType;
  String proCateName;
  String img;
  String price;
  String quantity;//数量
  String bond;
  int totalPrice;
  int status;
  String uhead;
  String proStyle;
  String get statusStr{
    return  status ==0?'待合作':status==1?'待送货':status==2?'待验收':status==3?'待付款':status==4?'已完成':'';
  }
  OrderReleaseModel(
      {this.id,
      this.comName,
      this.phone,
      this.proName,
      this.robType,
      this.proCateName,
      this.img,
      this.price,
      this.quantity,
      this.bond,
      this.totalPrice,
      this.status,this.uhead,this.proStyle});

  OrderReleaseModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    comName = json['comName'];
    phone = json['phone'];
    proName = json['proName'];
    robType = json['robType'];
    proCateName = json['proCateName'];
    img = json['img'];
    price = json['price'];
    quantity = json['num'];
    bond = json['bond'];
    totalPrice = json['totalPrice'];
    status = json['status'];
    uhead=json['uhead'];
    proStyle=json['proStyle'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['comName'] = this.comName;
    data['phone'] = this.phone;
    data['proName'] = this.proName;
    data['robType'] = this.robType;
    data['proCateName'] = this.proCateName;
    data['img'] = this.img;
    data['price'] = this.price;
    data['num'] = this.quantity;
    data['bond'] = this.bond;
    data['totalPrice'] = this.totalPrice;
    data['status'] = this.status;
    return data;
  }
}